import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import 'rxjs/add/operator/map';

/*
  Generated class for the Reddit provider.

  See https://angular.io/docs/ts/latest/guide/dependency-injection.html
  for more info on providers and Angular 2 DI.
*/
@Injectable()
export class Reddit {

  settings:any;
  loading:boolean=false;
  posts:any=[];
  subreddit:string = 'gifs';
  page:number = 1;
  prePage:number = 15;
  after:string;
  stopIndex:number;
  sort: string = 'hot';
  moreCount:number = 0;

  constructor(public http: Http) {
    console.log('Hello Reddit Provider');
  }

  fetchData():void{

  }

}
